package cn.shopifymall.camunda717.serviceTask;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Service;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2024/5/11 17:38
 * @Version 1.0
 * Expression实现：可以设置返回变量
 */
@Service("telCall")
public class TelCallService {

    public int doCall(DelegateExecution execution) {
        return 10;
    }

    public void getScore(DelegateExecution execution) {
        int score = (int)execution.getVariable("score");
        System.out.println("score = " + score);
    }
}
